
using UnityEngine;
namespace HotUpdate
{
    public class AnimatorStateNameAttribute : PropertyAttribute
    {
        private string m_AnimatorFieldName=null;
        /// <summary>
        /// 指定的Animator字段的名称，否则直接全局查找本身及子物体的Animator
        /// </summary>
        /// <param name="animatorFieldName"></param>
        public AnimatorStateNameAttribute(string animatorFieldName = "")
        {
            m_AnimatorFieldName = animatorFieldName;
        }
        public string AnimatorFieldName => m_AnimatorFieldName;
    }
}

